/*
 * MyPractice.cpp
 *
 *  Created on: Feb 27, 2013
 *      Author: loadar
 */

#include "PracticeFactory.h"
#include <iostream>
#include <string>


int main(int argc, char* argv[])
{
	std::cout << "------------------start------------------" << std::endl;

	PracticeFactory factory;

	int result = 0;

	IPractice* practice = factory.newPracticeInstance("StaticPractice");

	if (practice != NULL)
	{
		result = practice->execute(argc, argv);

		delete practice;
	}

	practice = NULL;

	std::cout << "-------------------end-------------------" << std::endl;

	return result;
}

